package com.jian.mall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jian.mall.common.utils.PageUtils;
import com.jian.mall.ware.entity.PurchaseDetailEntity;
import com.jian.mall.ware.entity.WareSkuEntity;
import com.jian.mall.ware.vo.StockVo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author tainanle
 * @email 12345678@gmail.com
 * @date 2022-08-11 09:55:30
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void addStock(PurchaseDetailEntity detail);

    List<WareSkuEntity> getBySkuId(Long skuId);

    List<StockVo> getBySkuId(List<Long> skuIds);
}

